package sch.frog.creational.factorymethod;

import sch.frog.creational.factorymethod.bean.IBean;
import sch.frog.creational.factorymethod.factory.BeanAFactory;
import sch.frog.creational.factorymethod.factory.IBeanFactory;

public class FactoryMethodDemo {
    public static void main(String[] args){
        IBeanFactory factory = new BeanAFactory();
        IBean bean = factory.createBean();
        bean.show();
    }
}
